This page last changed on Dec 18, 2007 by aaime.
GeoServer logging profiles
Logging profiles are property files located in the GEOSERVER_DATA_DIR/log directory.
Each profile is in fact a Log4j configuration file, for example, PRODUCTION_LOGGING configuration is:
In the file you can see configurations for a root logger, with a main logging level, two appenders (standard output and log file) and a set of logging levels for specific packages.
You can create a custom logging profile following the same rules and by inspecting the GeoServer source code if you have package specific configuration needs.
For example, if you wanted to have lots of logs out of the JDBC based datastores such as Postgis, you could
specify the following:
log4j.category.org.geotools.data.postgis=FINE
log4j.category.org.geotools.data.jdbc=FINE
log4j.category.org.geotools=WARN
Once the property file is completed just include it in the GEOSERVER_DATA_DIR/logs directory and the web UI will include it in your list.
|